﻿import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Admin
 * Date: 2022-12-13
 * Time: 15:22
 */
public class Demo1 {
   
   public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        
        while(scan.hasNext()) {
            String line = scan.nextLine();
            String[] arr = line.split(" ");
            char[] chA = arr[0].toCharArray();
            char[] chB = arr[1].toCharArray();
            
            HashMap<Character,Integer> mapA = new HashMap<>();
            HashMap<Character,Integer> mapB = new HashMap<>();
            
            for(char i : chA) {
                if(mapA.containsKey(i)) {
                    mapA.put(i,mapA.get(i)+1);
                }else {
                    mapA.put(i,1);
                }
            }
            
            for(char j : chB) {
                if(mapB.containsKey(j)) {
                    mapB.put(j,mapB.get(j)+1);
                }else {
                    mapB.put(j,1);
                }
            }
                boolean fly = true;
                
                for(char ch : chB) {
                    //当A当中不包含B里的所有种类或者A当中的种类数量小于B当中的数量则为假输出NO
                    if(!mapA.containsKey(ch) || mapA.get(ch) < mapB.get(ch)) {
                        fly = false;
                        break;
                    }
                }
                
                System.out.println(fly ? "Yes" : "No");
            }
        }
}
